var mjutils = require("../game_server/mjutils");
var holds = [33, 33, 2, 3, 4, 6, 7, 8, 5, 6];
function inMJUtils(holds) {
	for (var i = 0; i < holds.length; i++) {
		var hold = parseInt(holds[i]);
		if (hold >= 0 && hold < 9) {
			//筒
			holds[i] = hold + 1;
		} else if (hold >= 9 && hold < 18) {
			//条
			holds[i] = hold + 2;
		} else if (hold >= 18 && hold < 27) {
			//万
			holds[i] = hold + 3;
		} else if (hold >= 27 && hold < 34) {
			//风
			holds[i] = hold + 4;
		} else {
			console.log("error hold")
		}
	}

	return holds;
}

var pais = inMJUtils(holds);
console.log(mjutils.checkBaoTou(pais));